﻿using System; 
using System.Collections.Generic;
using CoolCode.Models;

namespace CoolCode.Services
{
    public interface  IMenuService
    {
        ModuleList ListMenu(string user);
        ModuleList ListMenu(string user, string module);

        List<RoleModel> ListMenuInRole(string role);
        void DeleteMenuInRole(string role);
        void SaveMenuInRole(List<RoleModel> list);

        List<RoleModel> ListMenuInUser(string user);
        void DeleteMenuInUser(string user);
        void SaveMenuInUser(List<RoleModel> list);

       Role GetRoleByPage(string user, string module, string node);
    }
}
